<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.13.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>CAD_Doc: gtest_test_utils.Subprocess Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
  $(function() { init_search(); });
/* @license-end */
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">CAD_Doc<span id="projectnumber">&#160;1.0</span>
   </div>
   <div id="projectbrief">cad synopsis</div>
  </td>
    <td>        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <span id="MSearchSelect"                onmouseover="return searchBox.OnSearchSelectShow()"                onmouseout="return searchBox.OnSearchSelectHide()">&#160;</span>
          <input type="text" id="MSearchField" value="" placeholder="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
          </span>
        </div>
</td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.13.2 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){initNavTree('classgtest__test__utils_1_1_subprocess.html',''); initResizable(true); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="classgtest__test__utils_1_1_subprocess-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">gtest_test_utils.Subprocess Class Reference</div></div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a3d113c3ae02cdd33d471ab0f0acb10b5" id="r_a3d113c3ae02cdd33d471ab0f0acb10b5"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a3d113c3ae02cdd33d471ab0f0acb10b5">__init__</a> (self, command, working_dir=None, capture_stderr=True, env=None)</td></tr>
<tr class="separator:a3d113c3ae02cdd33d471ab0f0acb10b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a170f722b867e51f3e97b5b60399988cf" id="r_a170f722b867e51f3e97b5b60399988cf"><td class="memItemLeft" align="right" valign="top"><a id="a170f722b867e51f3e97b5b60399988cf" name="a170f722b867e51f3e97b5b60399988cf"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>output</b> = p.communicate()[0]</td></tr>
<tr class="separator:a170f722b867e51f3e97b5b60399988cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0908a58fa8d672f08267af2e2ddc2ac8" id="r_a0908a58fa8d672f08267af2e2ddc2ac8"><td class="memItemLeft" align="right" valign="top"><a id="a0908a58fa8d672f08267af2e2ddc2ac8" name="a0908a58fa8d672f08267af2e2ddc2ac8"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>terminated_by_signal</b> = True</td></tr>
<tr class="separator:a0908a58fa8d672f08267af2e2ddc2ac8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a879efa428feaa0f1e45aa0dbf82d93e9" id="r_a879efa428feaa0f1e45aa0dbf82d93e9"><td class="memItemLeft" align="right" valign="top"><a id="a879efa428feaa0f1e45aa0dbf82d93e9" name="a879efa428feaa0f1e45aa0dbf82d93e9"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>exited</b> = False</td></tr>
<tr class="separator:a879efa428feaa0f1e45aa0dbf82d93e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01acee4476fd01ccf017d1351cf46c08" id="r_a01acee4476fd01ccf017d1351cf46c08"><td class="memItemLeft" align="right" valign="top"><a id="a01acee4476fd01ccf017d1351cf46c08" name="a01acee4476fd01ccf017d1351cf46c08"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>exit_code</b> = self._return_code</td></tr>
<tr class="separator:a01acee4476fd01ccf017d1351cf46c08"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-attribs" name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:ac62600a9ac66eea7d81b37ceb5132bd4" id="r_ac62600a9ac66eea7d81b37ceb5132bd4"><td class="memItemLeft" align="right" valign="top"><a id="ac62600a9ac66eea7d81b37ceb5132bd4" name="ac62600a9ac66eea7d81b37ceb5132bd4"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>_return_code</b> = p.returncode</td></tr>
<tr class="separator:ac62600a9ac66eea7d81b37ceb5132bd4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a3d113c3ae02cdd33d471ab0f0acb10b5" name="a3d113c3ae02cdd33d471ab0f0acb10b5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3d113c3ae02cdd33d471ab0f0acb10b5">&#9670;&#160;</a></span>__init__()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gtest_test_utils.Subprocess.__init__ </td>
          <td>(</td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>self</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>command</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>working_dir</em></span><span class="paramdefsep"> = </span><span class="paramdefval">None</span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>capture_stderr</em></span><span class="paramdefsep"> = </span><span class="paramdefval">True</span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>env</em></span><span class="paramdefsep"> = </span><span class="paramdefval">None</span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">
<pre class="fragment">Changes into a specified directory, if provided, and executes a command.

Restores the old directory afterwards.

Args:
  command:        The command to run, in the form of sys.argv.
  working_dir:    The directory to change into.
  capture_stderr: Determines whether to capture stderr in the output member
                  or to discard it.
  env:            Dictionary with environment to pass to the subprocess.

Returns:
  An object that represents outcome of the executed process. It has the
  following attributes:
    terminated_by_signal   True if and only if the child process has been
                           terminated by a signal.
    exited                 True if and only if the child process exited
                           normally.
    exit_code              The code with which the child process exited.
    output                 Child process's stdout and stderr output
                           combined in a string.
</pre> 
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>Build/_deps/googletest-src/googletest/test/<b>gtest_test_utils.py</b></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespacegtest__test__utils.html">gtest_test_utils</a></li><li class="navelem"><a class="el" href="classgtest__test__utils_1_1_subprocess.html">Subprocess</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.13.2 </li>
  </ul>
</div>
</body>
</html>
